@extends('Admin.layout.layout')
@section('title','资讯列表')
@section('con')
	<!--资讯列表  -->
	<html>
 <head>
 	
 </head>
 <body>
 
    <table id="sample_2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample_2_info"> 
     <thead> 
      <tr role="row">
     
       <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 100px;" aria-label="Username: activate to sort column ascending">资讯标题</th>
       <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" aria-label="Email: activate to sort column ascending">资讯配图</th>
       <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" aria-label="Status: activate to sort column ascending">资讯的介绍</th>
       <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 370px;text-align:center;" aria-label="Status: activate to sort column ascending">资讯文章</th>
      	      <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 80px;text-align:center;" aria-text-align:center;label="Status: activate to sort column ascending">操作</th>
      </tr> 
     </thead>
      <!-- 遍历部分 -->
      @foreach($list as $k =>$v)
      <tr role="row">
    	 <td class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 100px;" aria-label="Username: activate to sort column ascending">{{$v->title}}</td>
    	 <td class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan= <td class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" ><img width="200px" height="200px" src="/consult/{{$v->img}}" ></td>
    	 <td class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" aria-label="Username: activate to sort column ascending"><div style="height:150px;width:150px;word-break:break-all;overflow:hidden">{{$v->content}}</div></td>
    	 <td class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 370px;text-align:center;" aria-label="Username: activate to sort column ascending"><div style="height:145px;width:360px;word-break:break-all;overflow:hidden">{{$v->text}}</div></td>
     	<td class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 80px;text-align:center;line-height:150px;" aria-label="Username: activate to sort column ascending"><a href="{{url('/admin/consul/delete',['id'=>$v->id])}}">删除</a>|	| <a href="{{url('/admin/consul/update',['id'=>$v->id])}}">修改</a>	</td>	
 	  </tr>
 	  @endforeach
    </table>
    <div class="row-fluid">
     <div class="span6">
      <div class="dataTables_info" id="sample_2_info">
      最新资讯
      </div>
     </div>
     <div class="span6">
      <div class="dataTables_paginate paging_bootstrap pagination">
      	{!! $list->render() !!}
      </div>
     </div>
    </div>
   </div> 
  </div>
 </body>
</html>



		
@endsection